﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Drawing;

namespace EasyGrocer
{
    public partial class SearchResults : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //if (Request.QueryString.Get("search") != "" || Request.QueryString.Get("search") != null)
            //{
            //    string search = Request.QueryString.Get("search");
            //    if (search.ToLower().Contains("cookes"))
            //    {
            //        lblResult.Text = search;
            //        lblDid.Visible = true;
            //        lblQ.Visible = true;
            //        hyp.Text = "cookies";
            //        hyp.NavigateUrl = "~/SearchResults.aspx?search=cookies";
            //        hyp.Visible = true;
            //    }
            //    else if (search.ToLower().Contains("cookies"))
            //    {
            //        lblResult.Text = search;
            //        //Results.Visible = true;
            //        //Next.Visible = true;
            //    }
            //    else if (search.ToLower().Contains("mufin"))
            //    {
            //        lblResult.Text = search;
            //        lblDid.Visible = true;
            //        lblQ.Visible = true;
            //        hyp.Text = "muffin";
            //        hyp.NavigateUrl = "~/SearchResults.aspx?search=muffin";
            //        hyp.Visible = true;
            //    }
            //    else if (search.ToLower().Contains("muffin"))
            //    {
            //        lblResult.Text = search;
            //    }
            //    else
            //    {
            //        lblResult.Text = search;
            //    }
            //}
        }

        protected void Button4_Click(object sender, EventArgs e)
        {

        }

        protected void Button68_Click(object sender, EventArgs e)
        {
            Button68.BackColor= Color.Yellow;
        }
    }
}
